package cn.wwk.notification.feign.clients;

import cn.wwk.notification.common.domain.Location;
import cn.wwk.notification.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author wwk
 */
@FeignClient(value = "notification-unit")
public interface LocationClient {
    /**
     * 查询所有位置
     * */
    @GetMapping("/location/list")
    Result<List<Location>> getAll();

    /**
     * 根据id查询location
     * */
    @GetMapping("/location/get/{id}")
    Result<Location> getById(@PathVariable("id") String id);
}
